package com.zut.hostest.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class Sale_RecordExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public Sale_RecordExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andSaleRecMdcIdIsNull() {
            addCriterion("sale_rec_mdc_id is null");
            return (Criteria) this;
        }

        public Criteria andSaleRecMdcIdIsNotNull() {
            addCriterion("sale_rec_mdc_id is not null");
            return (Criteria) this;
        }

        public Criteria andSaleRecMdcIdEqualTo(Integer value) {
            addCriterion("sale_rec_mdc_id =", value, "saleRecMdcId");
            return (Criteria) this;
        }

        public Criteria andSaleRecMdcIdNotEqualTo(Integer value) {
            addCriterion("sale_rec_mdc_id <>", value, "saleRecMdcId");
            return (Criteria) this;
        }

        public Criteria andSaleRecMdcIdGreaterThan(Integer value) {
            addCriterion("sale_rec_mdc_id >", value, "saleRecMdcId");
            return (Criteria) this;
        }

        public Criteria andSaleRecMdcIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("sale_rec_mdc_id >=", value, "saleRecMdcId");
            return (Criteria) this;
        }

        public Criteria andSaleRecMdcIdLessThan(Integer value) {
            addCriterion("sale_rec_mdc_id <", value, "saleRecMdcId");
            return (Criteria) this;
        }

        public Criteria andSaleRecMdcIdLessThanOrEqualTo(Integer value) {
            addCriterion("sale_rec_mdc_id <=", value, "saleRecMdcId");
            return (Criteria) this;
        }

        public Criteria andSaleRecMdcIdIn(List<Integer> values) {
            addCriterion("sale_rec_mdc_id in", values, "saleRecMdcId");
            return (Criteria) this;
        }

        public Criteria andSaleRecMdcIdNotIn(List<Integer> values) {
            addCriterion("sale_rec_mdc_id not in", values, "saleRecMdcId");
            return (Criteria) this;
        }

        public Criteria andSaleRecMdcIdBetween(Integer value1, Integer value2) {
            addCriterion("sale_rec_mdc_id between", value1, value2, "saleRecMdcId");
            return (Criteria) this;
        }

        public Criteria andSaleRecMdcIdNotBetween(Integer value1, Integer value2) {
            addCriterion("sale_rec_mdc_id not between", value1, value2, "saleRecMdcId");
            return (Criteria) this;
        }

        public Criteria andSaleRecTimeIsNull() {
            addCriterion("sale_rec_time is null");
            return (Criteria) this;
        }

        public Criteria andSaleRecTimeIsNotNull() {
            addCriterion("sale_rec_time is not null");
            return (Criteria) this;
        }

        public Criteria andSaleRecTimeEqualTo(Date value) {
            addCriterionForJDBCDate("sale_rec_time =", value, "saleRecTime");
            return (Criteria) this;
        }

        public Criteria andSaleRecTimeNotEqualTo(Date value) {
            addCriterionForJDBCDate("sale_rec_time <>", value, "saleRecTime");
            return (Criteria) this;
        }

        public Criteria andSaleRecTimeGreaterThan(Date value) {
            addCriterionForJDBCDate("sale_rec_time >", value, "saleRecTime");
            return (Criteria) this;
        }

        public Criteria andSaleRecTimeGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("sale_rec_time >=", value, "saleRecTime");
            return (Criteria) this;
        }

        public Criteria andSaleRecTimeLessThan(Date value) {
            addCriterionForJDBCDate("sale_rec_time <", value, "saleRecTime");
            return (Criteria) this;
        }

        public Criteria andSaleRecTimeLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("sale_rec_time <=", value, "saleRecTime");
            return (Criteria) this;
        }

        public Criteria andSaleRecTimeIn(List<Date> values) {
            addCriterionForJDBCDate("sale_rec_time in", values, "saleRecTime");
            return (Criteria) this;
        }

        public Criteria andSaleRecTimeNotIn(List<Date> values) {
            addCriterionForJDBCDate("sale_rec_time not in", values, "saleRecTime");
            return (Criteria) this;
        }

        public Criteria andSaleRecTimeBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("sale_rec_time between", value1, value2, "saleRecTime");
            return (Criteria) this;
        }

        public Criteria andSaleRecTimeNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("sale_rec_time not between", value1, value2, "saleRecTime");
            return (Criteria) this;
        }

        public Criteria andSaleRecCountIsNull() {
            addCriterion("sale_rec_count is null");
            return (Criteria) this;
        }

        public Criteria andSaleRecCountIsNotNull() {
            addCriterion("sale_rec_count is not null");
            return (Criteria) this;
        }

        public Criteria andSaleRecCountEqualTo(Integer value) {
            addCriterion("sale_rec_count =", value, "saleRecCount");
            return (Criteria) this;
        }

        public Criteria andSaleRecCountNotEqualTo(Integer value) {
            addCriterion("sale_rec_count <>", value, "saleRecCount");
            return (Criteria) this;
        }

        public Criteria andSaleRecCountGreaterThan(Integer value) {
            addCriterion("sale_rec_count >", value, "saleRecCount");
            return (Criteria) this;
        }

        public Criteria andSaleRecCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("sale_rec_count >=", value, "saleRecCount");
            return (Criteria) this;
        }

        public Criteria andSaleRecCountLessThan(Integer value) {
            addCriterion("sale_rec_count <", value, "saleRecCount");
            return (Criteria) this;
        }

        public Criteria andSaleRecCountLessThanOrEqualTo(Integer value) {
            addCriterion("sale_rec_count <=", value, "saleRecCount");
            return (Criteria) this;
        }

        public Criteria andSaleRecCountIn(List<Integer> values) {
            addCriterion("sale_rec_count in", values, "saleRecCount");
            return (Criteria) this;
        }

        public Criteria andSaleRecCountNotIn(List<Integer> values) {
            addCriterion("sale_rec_count not in", values, "saleRecCount");
            return (Criteria) this;
        }

        public Criteria andSaleRecCountBetween(Integer value1, Integer value2) {
            addCriterion("sale_rec_count between", value1, value2, "saleRecCount");
            return (Criteria) this;
        }

        public Criteria andSaleRecCountNotBetween(Integer value1, Integer value2) {
            addCriterion("sale_rec_count not between", value1, value2, "saleRecCount");
            return (Criteria) this;
        }

        public Criteria andSaleRecTotalIsNull() {
            addCriterion("sale_rec_total is null");
            return (Criteria) this;
        }

        public Criteria andSaleRecTotalIsNotNull() {
            addCriterion("sale_rec_total is not null");
            return (Criteria) this;
        }

        public Criteria andSaleRecTotalEqualTo(Double value) {
            addCriterion("sale_rec_total =", value, "saleRecTotal");
            return (Criteria) this;
        }

        public Criteria andSaleRecTotalNotEqualTo(Double value) {
            addCriterion("sale_rec_total <>", value, "saleRecTotal");
            return (Criteria) this;
        }

        public Criteria andSaleRecTotalGreaterThan(Double value) {
            addCriterion("sale_rec_total >", value, "saleRecTotal");
            return (Criteria) this;
        }

        public Criteria andSaleRecTotalGreaterThanOrEqualTo(Double value) {
            addCriterion("sale_rec_total >=", value, "saleRecTotal");
            return (Criteria) this;
        }

        public Criteria andSaleRecTotalLessThan(Double value) {
            addCriterion("sale_rec_total <", value, "saleRecTotal");
            return (Criteria) this;
        }

        public Criteria andSaleRecTotalLessThanOrEqualTo(Double value) {
            addCriterion("sale_rec_total <=", value, "saleRecTotal");
            return (Criteria) this;
        }

        public Criteria andSaleRecTotalIn(List<Double> values) {
            addCriterion("sale_rec_total in", values, "saleRecTotal");
            return (Criteria) this;
        }

        public Criteria andSaleRecTotalNotIn(List<Double> values) {
            addCriterion("sale_rec_total not in", values, "saleRecTotal");
            return (Criteria) this;
        }

        public Criteria andSaleRecTotalBetween(Double value1, Double value2) {
            addCriterion("sale_rec_total between", value1, value2, "saleRecTotal");
            return (Criteria) this;
        }

        public Criteria andSaleRecTotalNotBetween(Double value1, Double value2) {
            addCriterion("sale_rec_total not between", value1, value2, "saleRecTotal");
            return (Criteria) this;
        }

        public Criteria andSaleRecPriceIsNull() {
            addCriterion("sale_rec_price is null");
            return (Criteria) this;
        }

        public Criteria andSaleRecPriceIsNotNull() {
            addCriterion("sale_rec_price is not null");
            return (Criteria) this;
        }

        public Criteria andSaleRecPriceEqualTo(Double value) {
            addCriterion("sale_rec_price =", value, "saleRecPrice");
            return (Criteria) this;
        }

        public Criteria andSaleRecPriceNotEqualTo(Double value) {
            addCriterion("sale_rec_price <>", value, "saleRecPrice");
            return (Criteria) this;
        }

        public Criteria andSaleRecPriceGreaterThan(Double value) {
            addCriterion("sale_rec_price >", value, "saleRecPrice");
            return (Criteria) this;
        }

        public Criteria andSaleRecPriceGreaterThanOrEqualTo(Double value) {
            addCriterion("sale_rec_price >=", value, "saleRecPrice");
            return (Criteria) this;
        }

        public Criteria andSaleRecPriceLessThan(Double value) {
            addCriterion("sale_rec_price <", value, "saleRecPrice");
            return (Criteria) this;
        }

        public Criteria andSaleRecPriceLessThanOrEqualTo(Double value) {
            addCriterion("sale_rec_price <=", value, "saleRecPrice");
            return (Criteria) this;
        }

        public Criteria andSaleRecPriceIn(List<Double> values) {
            addCriterion("sale_rec_price in", values, "saleRecPrice");
            return (Criteria) this;
        }

        public Criteria andSaleRecPriceNotIn(List<Double> values) {
            addCriterion("sale_rec_price not in", values, "saleRecPrice");
            return (Criteria) this;
        }

        public Criteria andSaleRecPriceBetween(Double value1, Double value2) {
            addCriterion("sale_rec_price between", value1, value2, "saleRecPrice");
            return (Criteria) this;
        }

        public Criteria andSaleRecPriceNotBetween(Double value1, Double value2) {
            addCriterion("sale_rec_price not between", value1, value2, "saleRecPrice");
            return (Criteria) this;
        }

        public Criteria andSaleRecRemarkIsNull() {
            addCriterion("sale_rec_remark is null");
            return (Criteria) this;
        }

        public Criteria andSaleRecRemarkIsNotNull() {
            addCriterion("sale_rec_remark is not null");
            return (Criteria) this;
        }

        public Criteria andSaleRecRemarkEqualTo(String value) {
            addCriterion("sale_rec_remark =", value, "saleRecRemark");
            return (Criteria) this;
        }

        public Criteria andSaleRecRemarkNotEqualTo(String value) {
            addCriterion("sale_rec_remark <>", value, "saleRecRemark");
            return (Criteria) this;
        }

        public Criteria andSaleRecRemarkGreaterThan(String value) {
            addCriterion("sale_rec_remark >", value, "saleRecRemark");
            return (Criteria) this;
        }

        public Criteria andSaleRecRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("sale_rec_remark >=", value, "saleRecRemark");
            return (Criteria) this;
        }

        public Criteria andSaleRecRemarkLessThan(String value) {
            addCriterion("sale_rec_remark <", value, "saleRecRemark");
            return (Criteria) this;
        }

        public Criteria andSaleRecRemarkLessThanOrEqualTo(String value) {
            addCriterion("sale_rec_remark <=", value, "saleRecRemark");
            return (Criteria) this;
        }

        public Criteria andSaleRecRemarkLike(String value) {
            addCriterion("sale_rec_remark like", value, "saleRecRemark");
            return (Criteria) this;
        }

        public Criteria andSaleRecRemarkNotLike(String value) {
            addCriterion("sale_rec_remark not like", value, "saleRecRemark");
            return (Criteria) this;
        }

        public Criteria andSaleRecRemarkIn(List<String> values) {
            addCriterion("sale_rec_remark in", values, "saleRecRemark");
            return (Criteria) this;
        }

        public Criteria andSaleRecRemarkNotIn(List<String> values) {
            addCriterion("sale_rec_remark not in", values, "saleRecRemark");
            return (Criteria) this;
        }

        public Criteria andSaleRecRemarkBetween(String value1, String value2) {
            addCriterion("sale_rec_remark between", value1, value2, "saleRecRemark");
            return (Criteria) this;
        }

        public Criteria andSaleRecRemarkNotBetween(String value1, String value2) {
            addCriterion("sale_rec_remark not between", value1, value2, "saleRecRemark");
            return (Criteria) this;
        }

        public Criteria andSaleRecTypeIsNull() {
            addCriterion("sale_rec_type is null");
            return (Criteria) this;
        }

        public Criteria andSaleRecTypeIsNotNull() {
            addCriterion("sale_rec_type is not null");
            return (Criteria) this;
        }

        public Criteria andSaleRecTypeEqualTo(Integer value) {
            addCriterion("sale_rec_type =", value, "saleRecType");
            return (Criteria) this;
        }

        public Criteria andSaleRecTypeNotEqualTo(Integer value) {
            addCriterion("sale_rec_type <>", value, "saleRecType");
            return (Criteria) this;
        }

        public Criteria andSaleRecTypeGreaterThan(Integer value) {
            addCriterion("sale_rec_type >", value, "saleRecType");
            return (Criteria) this;
        }

        public Criteria andSaleRecTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("sale_rec_type >=", value, "saleRecType");
            return (Criteria) this;
        }

        public Criteria andSaleRecTypeLessThan(Integer value) {
            addCriterion("sale_rec_type <", value, "saleRecType");
            return (Criteria) this;
        }

        public Criteria andSaleRecTypeLessThanOrEqualTo(Integer value) {
            addCriterion("sale_rec_type <=", value, "saleRecType");
            return (Criteria) this;
        }

        public Criteria andSaleRecTypeIn(List<Integer> values) {
            addCriterion("sale_rec_type in", values, "saleRecType");
            return (Criteria) this;
        }

        public Criteria andSaleRecTypeNotIn(List<Integer> values) {
            addCriterion("sale_rec_type not in", values, "saleRecType");
            return (Criteria) this;
        }

        public Criteria andSaleRecTypeBetween(Integer value1, Integer value2) {
            addCriterion("sale_rec_type between", value1, value2, "saleRecType");
            return (Criteria) this;
        }

        public Criteria andSaleRecTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("sale_rec_type not between", value1, value2, "saleRecType");
            return (Criteria) this;
        }

        public Criteria andSaleRecNumberIsNull() {
            addCriterion("sale_rec_number is null");
            return (Criteria) this;
        }

        public Criteria andSaleRecNumberIsNotNull() {
            addCriterion("sale_rec_number is not null");
            return (Criteria) this;
        }

        public Criteria andSaleRecNumberEqualTo(String value) {
            addCriterion("sale_rec_number =", value, "saleRecNumber");
            return (Criteria) this;
        }

        public Criteria andSaleRecNumberNotEqualTo(String value) {
            addCriterion("sale_rec_number <>", value, "saleRecNumber");
            return (Criteria) this;
        }

        public Criteria andSaleRecNumberGreaterThan(String value) {
            addCriterion("sale_rec_number >", value, "saleRecNumber");
            return (Criteria) this;
        }

        public Criteria andSaleRecNumberGreaterThanOrEqualTo(String value) {
            addCriterion("sale_rec_number >=", value, "saleRecNumber");
            return (Criteria) this;
        }

        public Criteria andSaleRecNumberLessThan(String value) {
            addCriterion("sale_rec_number <", value, "saleRecNumber");
            return (Criteria) this;
        }

        public Criteria andSaleRecNumberLessThanOrEqualTo(String value) {
            addCriterion("sale_rec_number <=", value, "saleRecNumber");
            return (Criteria) this;
        }

        public Criteria andSaleRecNumberLike(String value) {
            addCriterion("sale_rec_number like", value, "saleRecNumber");
            return (Criteria) this;
        }

        public Criteria andSaleRecNumberNotLike(String value) {
            addCriterion("sale_rec_number not like", value, "saleRecNumber");
            return (Criteria) this;
        }

        public Criteria andSaleRecNumberIn(List<String> values) {
            addCriterion("sale_rec_number in", values, "saleRecNumber");
            return (Criteria) this;
        }

        public Criteria andSaleRecNumberNotIn(List<String> values) {
            addCriterion("sale_rec_number not in", values, "saleRecNumber");
            return (Criteria) this;
        }

        public Criteria andSaleRecNumberBetween(String value1, String value2) {
            addCriterion("sale_rec_number between", value1, value2, "saleRecNumber");
            return (Criteria) this;
        }

        public Criteria andSaleRecNumberNotBetween(String value1, String value2) {
            addCriterion("sale_rec_number not between", value1, value2, "saleRecNumber");
            return (Criteria) this;
        }

        public Criteria andSaleRecPhysicianIsNull() {
            addCriterion("sale_rec_physician is null");
            return (Criteria) this;
        }

        public Criteria andSaleRecPhysicianIsNotNull() {
            addCriterion("sale_rec_physician is not null");
            return (Criteria) this;
        }

        public Criteria andSaleRecPhysicianEqualTo(Integer value) {
            addCriterion("sale_rec_physician =", value, "saleRecPhysician");
            return (Criteria) this;
        }

        public Criteria andSaleRecPhysicianNotEqualTo(Integer value) {
            addCriterion("sale_rec_physician <>", value, "saleRecPhysician");
            return (Criteria) this;
        }

        public Criteria andSaleRecPhysicianGreaterThan(Integer value) {
            addCriterion("sale_rec_physician >", value, "saleRecPhysician");
            return (Criteria) this;
        }

        public Criteria andSaleRecPhysicianGreaterThanOrEqualTo(Integer value) {
            addCriterion("sale_rec_physician >=", value, "saleRecPhysician");
            return (Criteria) this;
        }

        public Criteria andSaleRecPhysicianLessThan(Integer value) {
            addCriterion("sale_rec_physician <", value, "saleRecPhysician");
            return (Criteria) this;
        }

        public Criteria andSaleRecPhysicianLessThanOrEqualTo(Integer value) {
            addCriterion("sale_rec_physician <=", value, "saleRecPhysician");
            return (Criteria) this;
        }

        public Criteria andSaleRecPhysicianIn(List<Integer> values) {
            addCriterion("sale_rec_physician in", values, "saleRecPhysician");
            return (Criteria) this;
        }

        public Criteria andSaleRecPhysicianNotIn(List<Integer> values) {
            addCriterion("sale_rec_physician not in", values, "saleRecPhysician");
            return (Criteria) this;
        }

        public Criteria andSaleRecPhysicianBetween(Integer value1, Integer value2) {
            addCriterion("sale_rec_physician between", value1, value2, "saleRecPhysician");
            return (Criteria) this;
        }

        public Criteria andSaleRecPhysicianNotBetween(Integer value1, Integer value2) {
            addCriterion("sale_rec_physician not between", value1, value2, "saleRecPhysician");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}